package user;

import book.Book;
import book.BookLIst;
import operation.Ioperation;

public abstract class User {
    public String name;
    public Ioperation[] ioperations;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doOperation(int choice,BookLIst books) {
        Ioperation ioperation = ioperations[choice];
        ioperation.work(books);
    }

}
